package com.wanxi.service;

import com.wanxi.dao.ImageShowDao;
import com.wanxi.dao.NavDao;
import com.wanxi.dao.NewsDao;
import com.wanxi.model.ImageShowModel;
import com.wanxi.model.NavModel;
import com.wanxi.model.NewsModel;

import java.text.ParseException;
import java.util.List;

public class AboutService {
//    获取所有头部标签
    public List<NavModel> getNavModelList() {
        NavDao navDao=new NavDao();
        return navDao.getAllNav();
    }
//    获取学生展示图片
    public List<ImageShowModel> getStudentShowModelList() {
        ImageShowDao imageShowDao=new ImageShowDao();
        return imageShowDao.getStudentShowImage();
    }
//    获取新闻列表
    public List<NewsModel> getNewsModelList() {
        NewsDao newsDao=new NewsDao();
        return newsDao.getNewsDao();
    }
//    获取对应新闻图片
    public List<ImageShowModel> getNewsImageModelList() {
        ImageShowDao imageShowDao=new ImageShowDao();
        return imageShowDao.getNewsImage();
    }
}
